package com.kun.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * 权限实体类
 * @author Administrator
 *
 */
public class SysAuthEntity {
	
	 private Integer sysAuthId ;
	 private String sysAuthName ;
	 private String sysAuthModel;
	 private Integer sysParentId;
	 private String sysAuthPath;
	 private String sysAuthDesc;
	 private boolean IsHave;
	 //一个权限可以被多个角色拥有
	 private Set<SysRoleEntity> roles = new HashSet<SysRoleEntity>();
	 
	 public Set<SysRoleEntity> getRoles() {
		return roles;
	}
	public void setRoles(Set<SysRoleEntity> roles) {
		this.roles = roles;
	}
	public boolean isIsHave() {
		return IsHave;
	 }
	 public void setIsHave(boolean isHave) {
		IsHave = isHave;
	 }
	
	public Integer getSysAuthId() {
		return sysAuthId;
	}
	public void setSysAuthId(Integer sysAuthId) {
		this.sysAuthId = sysAuthId;
	}
	public String getSysAuthName() {
		return sysAuthName;
	}
	public void setSysAuthName(String sysAuthName) {
		this.sysAuthName = sysAuthName;
	}
	public String getSysAuthModel() {
		return sysAuthModel;
	}
	public void setSysAuthModel(String sysAuthModel) {
		this.sysAuthModel = sysAuthModel;
	}
	public String getSysAuthDesc() {
		return sysAuthDesc;
	}
	public void setSysAuthDesc(String sysAuthDesc) {
		this.sysAuthDesc = sysAuthDesc;
	}
	
	public int getSysParentId() {
		return sysParentId;
	}
	public void setSysParentId(Integer sysParentId) {
		this.sysParentId = sysParentId;
	}
	public String getSysAuthPath() {
		return sysAuthPath;
	}
	public void setSysAuthPath(String sysAuthPath) {
		this.sysAuthPath = sysAuthPath;
	}

	
	 
}
